package com.room.mapper;

import com.room.pojo.Dormman;
import com.room.pojo.Teachaer;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DormmanMapper {
    int deleteByPrimaryKey(Integer dormmanId);

    int insert(Dormman record);

    int insertSelective(Dormman record);

    Dormman selectByPrimaryKey(Integer dormmanId);

    int updateByPrimaryKeySelective(Dormman record);

    int updateByPrimaryKey(Dormman record);

    List<Dormman> getDormmanByPage(@Param("start")Integer start, @Param("size")Integer size);

    @Select("select count(*) from dormman")
    long getTotal();
}